import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

/** 登录 */
export const EmployeeLogin = (data?: object) => {
  return http.request<any>("post", baseUrlApi("admin/login"), { data });
};

export type RefreshTokenResult = {
  info: {
    AccessToken: string;
    RefreshToken: string;
    AccessTime: Number;
  };
};
export const RefreshToken = (data?: object) => {
  return http.request<any>("post", baseUrlApi("admin/refreshToken"), { data });
};
